Ext.define('HRMS.view.user.AddAccount', {
    extend: 'Ext.window.Window',
    alias: 'widget.addaccount',
    
    height: 250,
    width: 400,
    layout: {
        type: 'fit'
    },
    animCollapse: true,
    closeAction: 'hide',
    collapsible: true,
    title: 'Add Account',
    maximizable: true,
    modal: true,
    
    dockedItems: [{
    	id: 'buttons',
        xtype: 'toolbar',
        dock: 'bottom',
        ui: 'footer',
        layout: {
            pack: 'center'
        },
        items: [
            {
	        	//iconCls: 'icon-save',
	        	itemId: 'save',            
	            text: 'Save',
	            action: 'save'
            }            
        ]
    }],

    initComponent: function() {
        var me = this;

        Ext.applyIf(me, {
            items: [
                {
                    xtype: 'form',
                    border: 0,                    
                    layout: {
                        align: 'stretch',
                        type: 'vbox'
                    },
                    bodyPadding: 10,
                    fieldDefaults: {
                        labelWidth: 55,
                        anchor: '100%'
                    },
                    
                    items: [
						{
						    xtype: 'textfield',
						    fieldLabel: 'id',
						    name: 'id',
						    hidden:true
						},
                        {
                            xtype: 'textfield',
                            fieldLabel: 'Name',
                            name: 'firstName'
                        },
                        {
                            xtype: 'textfield',
                            fieldLabel: 'Address',
                            name: 'address'
                        },
                        {
                            xtype: 'textfield',
                            fieldLabel: 'Email',
                            name: 'email'
                        },
                        {
                            xtype: 'combobox',
                            fieldLabel: 'Label'
                        }
                    ]
                }
            ]
        });

        me.callParent(arguments);
    }

});